Open and Closed Worlds for Overloading: a Definition and Support for Coexistence

نویسندگان

  • Carlos Camarão
  • Cristiano D. Vasconcellos
  • Lucília Figueiredo
  • João Nicola
چکیده

The type system of Haskell and some related systems are based on an open world approach for overloading. In an open world, the principal type of each overloaded symbol must be explicitly annotated (in Haskell, annotations occur in type class declarations) and a definition of an overloaded symbol is required to exist only when overloading is resolved. In a closed world, on the other hand, each principal type is determined according to the types of definitions that exist in the relevant context and, furthermore, overloading resolution for an expression considers only the context of the definition of its constituent symbols. In this paper we formally characterize open and closed worlds, and discuss their relative advantages. We present a type system that supports both approaches together, and compare the defined system with Haskell type classes extended with multi-parameter type classes and functional dependencies. We show in particular that functional dependencies are not necessary in order to support multi-parameter type classes, and present an alternative route.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Effect of Soft Knee Support on Dynamic and Static Balance in the Male Elderly

Objectives: Joint supporters can caused increasing proprioceptive information. Such proprioceptive information is needed for balance. The purpose of this study was to determine the effect of soft knee support on static and dynamic balance tests in male elderly (65 years and older). Methods & Materials: Via a randomized clinical trial study design, 22 elderly were selected and divided into tw...

متن کامل

On the pointfree counterpart of the local definition of classical continuous maps

The familiar classical result that a continuous map from a space $X$ to a space $Y$ can be defined by giving continuous maps $varphi_U: U to Y$ on each member $U$ of an open cover ${mathfrak C}$ of $X$ such that $varphi_Umid U cap V = varphi_V mid U cap V$ for all $U,V in {mathfrak C}$ was recently shown to have an exact analogue in pointfree topology, and the same was done for the familiar cla...

متن کامل

Comparison of the Effects of Open and Closed Endotracheal Suction on Cardiovascular and Ventilation Parameters for Patients Undergoing Mechanical Ventilation

Background and Objectives: Suction is a necessary and common method which aids in the release of secretion from the respiratory system for the patients who have undergone mechanical ventilation. One of the most common complications of suction is hypoxemia which causes dysrhythmia and death. The purpose of this study was to determine the effects of open and closed-endotracheal suction on cardiov...

متن کامل

Definition of General Operator Space and The s-gap Metric for Measuring Robust Stability of Control Systems with Nonlinear Dynamics

In the recent decades, metrics have been introduced as mathematical tools to determine the robust stability of the closed loop control systems. However, the metrics drawback is their limited applications in the closed loop control systems with nonlinear dynamics. As a solution in the literature, applying the metric theories to the linearized models is suggested. In this paper, we show that usin...

متن کامل

Closed- and Open-loop Deep Brain Stimulation: Methods, Challenges, Current and Future Aspects

Deep brain stimulation (DBS) is known as the most effective technique in the treatment of neurodegenerative diseases, especially Parkinson disease (PD) and epilepsy. Relative healing and effective control of disease symptoms are the most significant reasons for the tangible tendency in use and development of this technology. Nevertheless, more cellular and molecular investigations are required ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. UCS

دوره 13  شماره 

صفحات  -

تاریخ انتشار 2007